<template>
    <div>
        <!-- 父子 传值 -->
        <p>{{num}}</p> 
        <p>{{obj.name}}</p>
        <hr>
        <button @click="add">+10</button>
    </div>
</template>

<script>
export default {
    name:'',
    components: {

    },
    props: ['num','obj'],
    data() {
        return {

        };
    },
    methods: {
        add(){
            this.$emit('add',10)
        }
    },
    watch: {

    },
    created() {

    },
    mounted() {

    },
    computed: {

    },
};
</script>

<style scoped lang="less">

</style>
